package com.syh.feignapi.clients;

import com.syh.feignapi.pojo.Companies;
import com.syh.feignapi.pojo.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "company-service")//指定调用哪个服务
public interface CompanyClient {
    @GetMapping("/companies/getnum")
    Integer getCheck(@RequestParam String name);

    @PostMapping("/companies/add_zc")
    Result add_zc(@RequestBody Companies companies);

    @GetMapping("/companies/getCompanyinfo")
    @Operation(summary = "获取公司信息")
    Companies getinfo(@RequestParam Integer id);
    @GetMapping("/companies/getId")
    @Operation(summary = "获取公司id")
    Result getId(@RequestParam String name);
}
